package cn.broadmax.boot.modules.sys.service.impl;


import cn.broadmax.boot.modules.sys.entity.SysArea;
import cn.broadmax.boot.modules.sys.mapper.SysAreaMapper;
import cn.broadmax.boot.modules.sys.service.ISysAreaService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 部门 服务实现类
 * </p>
 *
 * @author jexx
 * @since 2021-07-01
 */
@Service
public class SysAreaServiceImpl extends ServiceImpl<SysAreaMapper, SysArea> implements ISysAreaService {
    @Override
    public SysArea getDepartmentByCode(String orgCode) {
        LambdaQueryWrapper<SysArea> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysArea::getOrgCode, wrapper);
        return super.getOne(wrapper);
    }


}
